package com.zjs.db.affair.Controller;

import com.util.result.Message;
import com.zjs.db.affair.Service.AServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Description 事务测试
 * @Author zhu_js
 * @Date 2020/1/4 18:55
 * @Version 1.0
 */
@Slf4j
@RestController
@RequestMapping("/affair")
public class AffairController {

    @Resource
    private AServiceImpl aService;

    /**
     * 事务测试
     * @return
     */
    @PostMapping("/aService")
    public Message redissonTest() {
        return aService.aService();
    }
}
